package com.kamkor.interviewer.shared;

import java.io.Serializable;

/**
 * Contains user details. Each interviewId has a key for interviewer and interviewed. 
 * Interviewer pages can only be accessed with admin (interviewer) key. 
 * Interviewed pages can only be accessed with user (interviewed) key. 
 * 
 * @author kamkor
 *
 */
@SuppressWarnings("serial")
public class UserDetails implements Serializable {
	private Long interviewId;	
	
	/** key for interviewer */
	private Long adminKey;	
	
	/** key for interviewed */
	private Long userKey;
	
	public UserDetails() { }
	
	public UserDetails(Long id, Long adminKey) {
		super();
		this.interviewId = id;
		this.adminKey = adminKey;	
		this.userKey = 0L;
	}
	
	public UserDetails(Long id, Long adminKey, Long userKey) {
		this(id, adminKey);
		this.userKey = userKey;
	}
	
	public void setId(Long id) {
		this.interviewId = id;
	}
	public Long getId() {
		return interviewId;
	}
	public void setAdminKey(Long adminKey) {
		this.adminKey = adminKey;
	}
	public Long getAdminKey() {
		return adminKey;
	}
	public void setUserKey(Long userKey) {
		this.userKey = userKey;
	}	
	public Long getUserKey() {
		return userKey;
	}
	
}
